Result

Abstract representation of a translation result. Implementations of this class may or may not have all three translation components

Author

fzzyhmstrs

Since

0.6.8, will replace Result itself in 0.7.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val content: Translatable.Result

Search content parsed and checked by the Searcher

Link copied to clipboard
abstract val desc: Text?
Link copied to clipboard
abstract val name: Text
Link copied to clipboard
abstract val prefix: Text?
Link copied to clipboard
open override val skip: Boolean

Whether the search should exclude this content from search results. This is active state, so can change between true and false as needed.

Functions

Link copied to clipboard
abstract fun map(nameMapper: UnaryOperator<Text>, descMapper: UnaryOperator<Text>, prefixMapper: UnaryOperator<Text>): Translatable.Result
Link copied to clipboard
abstract fun mapDesc(descMapper: UnaryOperator<Text>): Translatable.Result
Link copied to clipboard
abstract fun mapName(nameMapper: UnaryOperator<Text>): Translatable.Result
Link copied to clipboard
abstract fun mapPrefix(prefixMapper: UnaryOperator<Text>): Translatable.Result